package patternmining.model.graph.bpsl;

import patternmining.model.graph.Edge;
import patternmining.model.graph.java.JavaInheritance;

public class BpslInheritance extends BpslPredicate {

    public BpslInheritance(BpslVariable origin, BpslVariable destination){
        super(origin, destination);
    }

    public static boolean acceptsArguments(BpslVariable firstArg, BpslVariable secondArg){

        if( firstArg instanceof BpslClass && secondArg instanceof BpslClass )  return true;

        return false;
    }

    public String toString(){
        return "Inheritance";
    }
    
    @Override
    public boolean match(Edge otherEdge){
        return otherEdge instanceof JavaInheritance;
    }

}
 
